<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String root = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>샘플 페이지</title>
<style type="text/css">
#a { 
	width: 200px;
	height: 100px;
	border: 1px solid pink;
	}
</style>
<script type="text/javascript">
function modi(seq){
	window.open("<%=root %>/modi.action?seq=" + seq, 
			"modi", "top=200, left=300, width=500, height=250, menubar=no, status=no, toolbar=no, location=no, scrollbars=no");
}
</script>
</head>

<body>
<center>
	<h3>연습 중!!!!!!!!!!!!!!!!!!!!!</h3>
	<table id="a">
	<s:form action="write" method="write" theme="simple">
		<tr>
			<td><img src="<%=root%>/img/subject.gif" width="60"
				height="30" border="0" align="absmiddle" vspace="4"></td>
			<td><s:textfield name="subject" /></td>
			<s:if test="%{fieldErrors.subjectError != null}">
			<br><font color="red"><s:property value="%{fieldErrors.subjectError}"/></font>		
			</s:if>
		</tr>
		<tr>
			<td colspan="2" align="center"><s:submit value="전송" /> &nbsp;&nbsp; 
			<s:reset value="취소" /></td>
		</tr>
	</s:form>
	</table>
		<s:action name="list" executeResult="true"/>
</center>
</body>
</html>